#!/bin/sh
#set -n
#set -x
cat ~/seeker/dcc/spread.txt | \
while read short_host desc svc env ; do
#desc="$1"
#host=$2
flogin=$(grep $short_host < ~/seeker/dcc/unixokhosts | sed -e "s/\r//g" )
#flogin=$(grep $host < ~/seeker/dcc/unixhosts | sed -e "s/\r//g" )
if [[ -z "$flogin" ]] ; then
	continue
fi
user=${flogin%%@*}
host=${flogin##*@}
echo "+ \"$host $desc $svc $env\" SshDccFunction $user \"$short_host $desc $svc $env\" $short_host $host"
done
